package com.stqf.scala.grammar.basic

/**
  * Created by ASUS on 2018-01-31.
  */
object NullLearn {
  def main(args: Array[String]): Unit = {
    var str = Option.empty[String]
    str = Option("dafa")
    println(str.get)
    var temp = Option.empty[Any]
    temp = Option("    ")
    var aa = Some[String](" ")
    val bool = aa.isInstanceOf[Some[String]]
    println(bool)
    var bb = ""
    val of = bb.isInstanceOf[String]
    println(of)
    var cc: String = null
    cc = ""
    println(cc)
  }
}